package me.zhengjie.minbearwcs.listener.agv.action.strategy.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.entity.PO.wcs.mission.type.MissionType;
import me.zhengjie.minbearwcs.listener.agv.action.strategy.StorageReleaseStrategy;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class StorageReleaseStrategyImpl implements StorageReleaseStrategy {

//    private final Storage3Or4FloorLocker storage3Or4FloorLocker;
//    private final Storage3Or4FloorBookingSelector storage3Or4FloorBookingSelector;
//    private final DualHeadStorageDao dualHeadStorageDao;

    @Override
    public void release(MissionType missionType, String point, String pallet) {
//        switch (missionType) {
//            case INBOUND_3_OR_4_FLOOR:
//                dualHeadStorageDao.updateBookingPalletByQrPoint(point, pallet);
//                release3Or4FloorStorage(point, pallet);
//                break;
//            case INBOUND_5_OR_6_FLOOR:
//                // TODO 继续补充
//                break;
//        }
    }

    private void release3Or4FloorStorage(String point, String pallet) {
//        storage3Or4FloorLocker.unLockStorage(point, pallet);
//        storage3Or4FloorBookingSelector.finishAndClearBook(point);
    }
}
